const {baseService2} =require('../../baseService2')
const {modelprofessionType} =require('../../../dao/model/model')
const beansEnter =require('../../../beans/beansEnter')

/* 
记得在serviceEnter里注册一下
*/

/* 异常类 */
class professionTypeServiceError extends Error {
    constructor(error,message='职业类型模块异常'){
        super()
        this.error = error
        this.message=message
    }
}


class professionTypeService extends baseService2{

    static ins = new professionTypeService()

    static getIns (){
        if(this.ins){
            return this.ins
        }else{
            return new professionTypeService()
        }
    }



    constructor(){
        super( modelprofessionType,professionTypeServiceError)
    }
}







module.exports={professionTypeService}
